from machine import Pin
import time

buzzer = Pin(15, Pin.OUT, value=0)

for i in range(20):
    buzzer.value(100)
    time.sleep(0.01)
    buzzer.value(0)
    time.sleep(0.1)